ABC130 B - Bounding
https://atcoder.jp/contests/abc130/tasks/abc130_b
提出
code: python
n, x = map(int, input().split())
l = list(map(int, input().split()))
bounds = 0
ans = 1
for i in l:
bounds += i
if (bounds <= x):
ans += 1
else:
break
print(ans)